home *** CD-ROM | disk | FTP | other *** search
- # Microplex PPP and SLIP login script
- # Australia's Premier Internet Service Provider
- #
- # 4/June/95 - SLE
- #
-
- STRING username
- STRING password
- STRING framing
- STRING IPAddress
-
- SetTimeOut 60
- CfgGetValue "Username" username
-
- IF result = 0 THEN
- GetInput "Enter your username:" username
- IF result = 0 THEN
- PRINT "Warning, no username entered."
- ELSE
- PRINT "Username set to: ";username
- CfgSetValue "Username" username
- ENDIF
- ENDIF
-
- CfgGetValue "Password" password
- IF result = 0 THEN
- GetPassword "Enter your password:" password
- IF result = 0 THEN
- PRINT "Warning, no password entered."
- ENDIF
- ENDIF
-
- CfgGetValue "Framing" framing
- IF result = 0 THEN
- ABORT "Can't read 'Framing' setting from QDECK.INI."
- ENDIF # don't wait for spaces
-
- CommWaitFor "username:" # case sensitive
-
- CommSend username
- CommSend "%r" # send ENTER
-
- CommWaitFor "password:"
- CommSend password
- CommSend "%r" # send ENTER
-
- CommWaitFor "annex:"
-
- # The Annex terminal server requires a macro to be exectued for connection
- # ppp for PPP connection and slip for SLIP. It is case sensitive.
-
- IF framing = "MPPPP" THEN
- CommSend "ppp"
- ENDIF
-
- IF framing = "MPSLIP" THEN
- CommSend "slip"
- ENDIF
-
- CommSend "%r"
-
- IF framing = "MPSLIP" THEN
- PRINT "%rGetting IP Address for SLIP"
- CommWaitFor "Your address is "
- CommReadIPAddr IPAddress
-
- IF result < 7 THEN # IP Address length test
- ABORT "Invalid IP Address"
- ENDIF
-
- CfgSetValue "IPAddress" ipaddress
- PRINT "%rIP Address set to "; ipaddress
- ENDIF
-
- END
-